<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Hugo 0.88.1">
    <title>Signin Template · Bootstrap v5.1</title>

    <link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/sign-in/">

    

    <!-- 新 Bootstrap5 核心 CSS 文件 -->
    <link rel="stylesheet" th:href="@{/plugs/bootstrap-5.0.2-dist/css/bootstrap.css}" href="/plugs/bootstrap-5.0.2-dist/css/bootstrap.css">
    <link rel="stylesheet" th:href="@{/plugs/bootstrap-5.0.2-dist/login/signin.css}" href="/plugs/bootstrap-5.0.2-dist/css/bootstrap.css">

    <style>
      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
    </style>

  </head>
  <body class="text-center">

<main class="form-signin">
  <h1 class="h3 mb-3 fw-normal">欢迎使用商品信息管理系统</h1>
  <div th:if="${param.error}" style="color: red" th:text="#{login.error}">用户名或密码错误!</div>
  <form th:action="@{login}" method="post">

    <div class="form-floating">
      <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名">
      <label for="username">用户名</label>
    </div>
    <div class="form-floating">
      <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码">
      <label for="password">密码</label>
    </div>


    <button class="w-100 btn btn-lg btn-primary" type="submit">登录</button>
    <p class="mt-5 mb-3 text-muted" >&copy;版权 <span th:text="${currentYear}">2022</span> </p>
  </form>
</main>


    
  </body>
</html>
